package io.github.talelin.latticy.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.talelin.latticy.model.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 公域任务表
 *
 * @author generator@TaleLin
 * @since 2020-12-31
 */
@Data
//@EqualsAndHashCode(callSuper = true)
//@Accessors(chain = true)
@TableName("common_job")
public class CommonJobDO extends BaseModel {


    /**
     * 发布人ID
     */
    private Long putUserId;

    /**
     * 领取人ID
     */
    private Long getUserId;

    /**
     * 发布标题
     */
    private String putTitle;

    /**
     * 领取标题
     */
    private String getTitle;

    /**
     * 项目ID
     */
    private Long projectId;

    /**
     * 截止时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "PRC")
    @Temporal(TemporalType.TIMESTAMP)
    private Date endTime;

    /**
     * 预计完成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "PRC")
    @Temporal(TemporalType.TIMESTAMP)
    private Date expectedTime;

    /**
     * 是否领取
     */
    private Boolean isGetting;

    /**
     * 状态：1-未完成，2-已完成，3-进行中
     */
    private Integer status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 是否显示
     */
    private Boolean online;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "PRC")
    private Date createTime;
}
